package com.andromouse;

import java.awt.Container;
import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class AboutBox extends JFrame {
	private static final long serialVersionUID = 1L;

	public AboutBox() {
		JLabel thank = new JLabel();
		JLabel version = new JLabel("AndroMouse Desktop Version 2.5");
		Container Pane = getContentPane();
		setTitle("About AndroMouse");
		setSize(300, 120);
		thank.setText("Thank you for downloading AndroMouse.");
		Pane.add(thank);
		Pane.add(version);
		setResizable(false);

		setVisible(true);

		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		int w = getSize().width;
		int h = getSize().height;
		int x = (dim.width - w) / 2;
		int y = (dim.height - h) / 2;

		setLocation(x, y);
	}
}
